//
// Created by wkm on 2023-12-06.
//

#ifndef MYSYSTEMCLEARNING_PRIORITY_H
#define MYSYSTEMCLEARNING_PRIORITY_H

#include "systemc.h"

const int INPUT_SIZE = 4;
const int OUTPUT_SIZE = 3;

SC_MODULE(priority) {
    sc_in<sc_uint<INPUT_SIZE>> sel;
    sc_out<sc_uint<OUTPUT_SIZE>> z;

    void prc_priority();

    SC_CTOR(priority) {
        SC_METHOD(prc_priority);
        sensitive << sel;
    }
};

#endif //MYSYSTEMCLEARNING_PRIORITY_H
